package com.scorpio.appuser.mapper;

import com.scorpio.common.dao.BaseDao;
import com.scorpio.appuser.domain.UserAddressEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户地址Mapper接口
 *
 * @author scorpio
 * @date 2021-10-29
 */
@Mapper
public interface UserAddressMapper extends BaseDao<UserAddressEntity> {

    UserAddressEntity selectRecommendAddress(@Param("uid")Long uid);

    int updateDefaultToNot(@Param("uid")Long uid);

    UserAddressEntity selectByUser(@Param("uid")Long uid,@Param("id") Long id);

    int deleteByUser(@Param("uid")Long uid,@Param("id") Long id);

    List<UserAddressEntity> appList(@Param("uid") Long uid);


}
